package com.an.xx;

public class Test {
    public static void main(String[] args) {
        A a=new A();
        a.age=10;
        a.age3=20;
        a.age4=30;
        a.print();
    }
}

class A{
    public int age=100;
    private int age2;
    protected int  age3;
    protected int age4;
    public void print(){
        System.out.println("age="+age+"age2="+age2+"age3="+age3+"age4="+age4);
    }
}